package cn.edu.lcu.cs.javaprogramming.thread;

public class MyCounter implements Runnable{
    private int count = 84;

    @Override
    public void run() {
        while (count > 0) {
            System.out.println(Thread.currentThread().getName() + "\t" + count--);
            try {
                Thread.sleep(100);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}
